export interface PageDTO<T> {
  current: number;
  size: number;
  totalSize: number;
  totalPage: number;
  data: T[];
}

export interface PageQry {
  size: number;
  current: number;
}

export interface R<T> {
  code: string;
  message: string;
  data: T;
}

export enum ErrorCode {
  /**
   * 请求成功
   */
  Success = "Success",
  /**
   * 请求通用失败
   */
  GeneralError = "GeneralError"
}
